package marina;

import java.util.Scanner;

public class J12SungJuk {

	public static void main(String[] args) {
		SungJuk taehee = new SungJuk();
		SungJuk suji = new SungJuk();
		SungJuk jihyun = new SungJuk();
		
		taehee.strName = "태희";
		taehee.kor = 99;
		taehee.eng = 97;
		taehee.mat = 100;
		System.out.println(taehee.strName);
		System.out.println(taehee.getTotal());
		System.out.println(taehee.getAverage());
		System.out.println(taehee.getGrade());

	}//main

}//class

class SungJuk{
	String strName;
	int kor;
	int eng;
	int mat;
	int tot;
	double avg;
	char grd;
	
	public char getGrade() {
		switch ((int) getAverage() / 10) { 
		case 10:
			grd = '수';
			break;
		case 9:
			grd = '수';
			break;
		case 8:
			grd = '우';
			break;
		case 7:
			grd = '미';
			break;
		case 6:
			grd = '양';
			break;
		default:
			grd = '가';
		}
		return grd;
	}

	public double getAverage() {
		return (double)getTotal() / 3;
	}

	public int getTotal() {
		return kor + eng + mat;
	}

}//sungjuk
